-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ErrorGuaranteed
more in MIR type ops
#111918
Conversation
7f01686
to
d08b8e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after comments
d08b8e3
to
0a35db5
Compare
Some changes occurred in engine.rs, potentially modifying the public API of |
Removed fallible, addressed nit @bors r=lcnr |
…r, r=lcnr Use `ErrorGuaranteed` more in MIR type ops Delay bugs more eagerly and pass them through type op infra instead of delaying them at all the usage-sites. Follow up to: rust-lang#111741 (comment) r? `@lcnr`
( | ||
Self::QueryResponse, | ||
Option<Canonical<'tcx, ParamEnvAnd<'tcx, Self>>>, | ||
PredicateObligations<'tcx>, | ||
Certainty, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that sure is a type xx, we should define a separate struct for that
☀️ Test successful - checks-actions |
Finished benchmarking commit (be72f25): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 644.366s -> 643.81s (-0.09%) |
…=lcnr Perform MIR type ops locally in new solver The new solver already does caching, and it's generally more correct to be using the infcx of the MIR typeck (which has the defining anchor set correctly and has already initialized all the opaques from HIR typeck). This is based on rust-lang#111918 so look at the final 3 commits. This actually causes some tests to go from passing to failing, and failing to passing. Here's the full diff: https://www.diffchecker.com/hB4bh1A9/ Putting this up for exposure mostly. r? `@lcnr`
Delay bugs more eagerly and pass them through type op infra instead of delaying them at all the usage-sites.
Follow up to: #111741 (comment)
r? @lcnr